# coding = utf-8
from flask import Flask, render_template

app = Flask(__name__)


@app.route('/')
def hello_world():
    my_list = [1, 2, 3, 4, 5, 56]
    return render_template('test_filter.html', my_list=my_list)


# @app.template_filter('list_reverse')
def do_reverse(li):
    temp = list(li)
    temp.reverse()
    return temp


app.add_template_filter(do_reverse, 'list_reverse')

if __name__ == '__main__':
    app.run(debug=True)
